package com.ap.core.dao;

/**
 * User: Ranjit.Singh
 * The Interface for Sequence Generation i.e. generation of unique identifiers for each persistent entity
 */
public interface SequenceGenerationDao {

    /**
     * Returns the next value for the sequence
     *
     * @param sql
     *            The sql string to get the next value for the sequence from the database
     * @return the next value of the sequence from the database
     */
    Long getNextID(final String sql);
}
